package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * Description: 关闭流程dto
 * @author 李杰
 * @date 2019/1/25 16:03
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ProcessDeleteDTO extends BaseDTO {

    private static final long serialVersionUID = -3155679333485700049L;

    /**
     * 应用id PaaS用
     */
    private Long appId;
    /**
     * 表单id PaaS用
     */
    private Long formId;
    /**
     * 菜单id PaaS用
     */
    private Long menuId;

    @NotNull(message = "{dto.msg.processDelete.processTemplateId.NotNull}")
    private Long processTemplateId;

    /**
     * 是否是saas 1：saas  2：paas
     */
    @DecimalMin(value = "1", message = "{dto.msg.processDelete.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processDelete.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.processDelete.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * saas业务类型
     */
    private Integer businessType;

    private Integer del;

    public ProcessDeleteDTO() {
        del = 0;
    }
}
